package com.soft.javase.day02.consolidation.extendss;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class Dog extends Animal{
    private String kind;

    public void lookHome(){
        System.out.println("一只名为"+this.getName()+"的"+kind+"正在看家");
    }

    @Override
    public void eat() {
        System.out.println("一只名为"+this.getName()+"的"+kind+"正在啃骨头");
    }

    public Dog() {
    }

    public Dog(String name, int age, String kind) {
        super(name, age);
        this.kind = kind;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }


}
